/**
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/

.register-form {
  max-width: 400px;
  margin: 30px auto;
  padding: 25px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.register-form div {
  margin-bottom: 20px;
}

.register-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.register-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.register-button {
  width: 100%;
  background-color: #4a89dc;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 10px;
}

.register-button:hover {
  background-color: #357bd8;
}

.error-message {
  padding: 10px;
  background-color: #ffebee;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
}

.login-section {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.login-link {
  color: #4a89dc;
  text-decoration: none;
  font-weight: bold;
}

.login-link:hover {
  text-decoration: underline;
}

.register-section {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.register-link {
  color: #4a89dc;
  text-decoration: none;
  font-weight: bold;
}

.register-link:hover {
  text-decoration: underline;
}

.referral-code-input {
  position: relative;
}

.referral-code-info {
  position: absolute;
  right: 10px;
  top: 40px;
  font-size: 18px;
  color: #3498db;
  cursor: pointer;
}

.referral-tooltip {
  display: none;
  position: absolute;
  right: -10px;
  top: 70px;
  width: 250px;
  background-color: #34495e;
  color: white;
  padding: 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: normal;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.referral-tooltip:before {
  content: '';
  position: absolute;
  top: -10px;
  right: 15px;
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #34495e transparent;
}

.referral-code-info:hover .referral-tooltip {
  display: block;
}